package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Entity
@Table(name = "PRAXIS_INTERN_ANALYSIS")
public class InternAnalysisTBL implements Serializable {

	/**
     * 
     */
	private static final long serialVersionUID = 1L;

	@Column(name = "ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "EINTRAG_NUMMER")
	private int internAnaNumber;

	private String datum;

	private String year;

	private String hbg_prozent;
	private String hkt;
	private String thrombos;
	private String leukos;
	private String erys;
	private String gran;
	private String lymph;
	private String bsg;

	private boolean urin;
	private boolean mittelstrahlUrin;
	private boolean ob_pos;

	private String leukocyten;
	private String nitrit;
	private String pH;
	private String protein;
	private String glucose;
	private String keton;
	private String uroBilonogene;
	private String bilirubin;
	private String blut;
	private String haemoglobin;

	private String zweiteCombur;

	private String urikult;

	@Column(name = "LOCKED")
	private Boolean locked;

	@OneToOne
	@JoinColumn(name = "LAST_EDITOR", nullable = true)
	private AccountingTBL lastEditor;

	@Column(name = "LAST_EDITED")
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Calendar lastEditTime;
	
	@ManyToOne
	@JoinColumn(name = "patientin_matricule_nummer", nullable = false)
	private CustomerTBL customer;

	public InternAnalysisTBL() {

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public boolean isOb_pos() {
		return ob_pos;
	}

	public void setOb_pos(boolean ob_pos) {
		this.ob_pos = ob_pos;
	}

	public int getInternAnaNumber() {
		return internAnaNumber;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public void setInternAnaNumber(int internAnaNumber) {
		this.internAnaNumber = internAnaNumber;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getDatum() {
		return datum;
	}

	public void setDatum(String datum) {
		this.datum = datum;
	}

	/*
	 * public String getYear() { return year; }
	 * 
	 * 
	 * 
	 * public void setYear(String year) { this.year = year; }
	 */

	public CustomerTBL getCustomer() {
		return customer;
	}

	public void setCustomer(CustomerTBL customer) {
		this.customer = customer;
	}

	public String getHbg_prozent() {
		return hbg_prozent;
	}

	public void setHbg_prozent(String hbg_prozent) {
		this.hbg_prozent = hbg_prozent;
	}

	public String getHkt() {
		return hkt;
	}

	public void setHkt(String hkt) {
		this.hkt = hkt;
	}

	public String getThrombos() {
		return thrombos;
	}

	public void setThrombos(String thrombos) {
		this.thrombos = thrombos;
	}

	public String getLeukos() {
		return leukos;
	}

	public void setLeukos(String leukos) {
		this.leukos = leukos;
	}

	public String getErys() {
		return erys;
	}

	public void setErys(String erys) {
		this.erys = erys;
	}

	public String getGran() {
		return gran;
	}

	public void setGran(String gran) {
		this.gran = gran;
	}

	public String getLymph() {
		return lymph;
	}

	public void setLymph(String lymph) {
		this.lymph = lymph;
	}

	public String getBsg() {
		return bsg;
	}

	public void setBsg(String bsg) {
		this.bsg = bsg;
	}

	public boolean isMittelstrahlUrin() {
		return mittelstrahlUrin;
	}

	public void setMittelstrahlUrin(boolean mittelstrahlUrin) {
		this.mittelstrahlUrin = mittelstrahlUrin;
	}

	public String getLeukocyten() {
		return leukocyten;
	}

	public void setLeukocyten(String leukocyten) {
		this.leukocyten = leukocyten;
	}

	public String getNitrit() {
		return nitrit;
	}

	public void setNitrit(String nitrit) {
		this.nitrit = nitrit;
	}

	public String getPH() {
		return pH;
	}

	public void setPH(String ph) {
		pH = ph;
	}

	public String getProtein() {
		return protein;
	}

	public void setProtein(String protein) {
		this.protein = protein;
	}

	public String getGlucose() {
		return glucose;
	}

	public void setGlucose(String glucose) {
		this.glucose = glucose;
	}

	public String getKeton() {
		return keton;
	}

	public void setKeton(String keton) {
		this.keton = keton;
	}

	public String getBilirubin() {
		return bilirubin;
	}

	public void setBilirubin(String bilirubin) {
		this.bilirubin = bilirubin;
	}

	public String getBlut() {
		return blut;
	}

	public void setBlut(String blut) {
		this.blut = blut;
	}

	public String getHaemoglobin() {
		return haemoglobin;
	}

	public void setHaemoglobin(String haemoglobin) {
		this.haemoglobin = haemoglobin;
	}

	public boolean isUrin() {
		return urin;
	}

	public void setUrin(boolean urin) {
		this.urin = urin;
	}

	public String getUroBilonogene() {
		return uroBilonogene;
	}

	public void setUroBilonogene(String uroBilonogene) {
		this.uroBilonogene = uroBilonogene;
	}

	public String getUrikult() {
		return urikult;
	}

	public void setUrikult(String urikult) {
		this.urikult = urikult;
	}

	public String getZweiteCombur() {
		return zweiteCombur;
	}

	public void setZweiteCombur(String zweiteCombur) {
		this.zweiteCombur = zweiteCombur;
	}

	public Boolean getLocked() {
		return locked;
	}

	public void setLocked(Boolean locked) {
		this.locked = locked;
	}

	public AccountingTBL getLastEditor() {
		return lastEditor;
	}

	public void setLastEditor(AccountingTBL lastEditor) {
		this.lastEditor = lastEditor;
	}

	public Calendar getLastEditTime() {
		return lastEditTime;
	}

	public void setLastEditTime(Calendar lastEditTime) {
		this.lastEditTime = lastEditTime;
	}

	
}
